import { Entity, CreateDate, UpdateDate, PrimaryKey, Varchar, SysUserId, Boolean, CreateUserId, Code } from '@sker/core'
/**
 * 系统字典
 */
@Entity({
    name: 'sys_code'
})
export class SysCode {
    static title: string = `系统字典`;
    static resource: string = `sys_code`;

    @PrimaryKey({
        comment: '键',
        primaryKeyConstraintName: 'PK_SYS_CODE_KEY'
    })
    key!: string;

    @Code({ nullable: true })
    type!: string;

    @Varchar({
        length: 100,
        comment: '值'
    })
    value!: string;

    @Varchar({
        length: 100,
        comment: '值'
    })
    value_cn!: string;

    @Boolean({
        comment: '状态'
    })
    status!: boolean;

    @CreateUserId({ type: 'uuid', comment: '创建人' })
    create_uid!: string;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}